import { ActionTree } from "vuex";
// import jwt_decode from 'jwt-decode'

const actions: ActionTree<any, any> = {
  async setUser({ state, commit }, user: any) {
    // const decode = jwt_decode(user)//用来解析token
    commit('SET_USER', user);
  }
}

export default actions;
